package com.ruoyi.bath.consumer.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员信息对象 consumer
 * 
 * @author ruoyi
 * @date 2021-08-07
 */
@Data
@TableName("consumer")
public class Consumer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 会员姓名 */
    @Excel(name = "会员姓名")
    private String consumerName;

    /** 性别 */
    @Excel(name = "性别")
    private String consumerGenerate;

    /** 手机号 */
    @Excel(name = "手机号")
    private String consumerPhone;

    /** 介绍经理 */
    @Excel(name = "介绍经理")
    private String mId;

    /** 会员QQ */
    @Excel(name = "会员QQ")
    private String consumerQQ;

    /** 会员微信 */
    @Excel(name = "会员微信")
    private String consumerVx;

//    会员累计消费次数
@Excel(name = "累计次数")
    private int consumerTimes;

    /** 会员卡等级 */
    @Excel(name = "会员卡等级")
    private String consumerCard;

    /** 上次消费日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次消费日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 上次消费金额 */
    @Excel(name = "上次消费金额")
    private BigDecimal price;
    @Excel(name = "备注")
    private String note;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConsumerName(String consumerName) 
    {
        this.consumerName = consumerName;
    }

    public String getConsumerName() 
    {
        return consumerName;
    }
    public void setConsumerGenerate(String consumerGenerate) 
    {
        this.consumerGenerate = consumerGenerate;
    }

    public String getConsumerGenerate() 
    {
        return consumerGenerate;
    }
    public void setConsumerPhone(String consumerPhone) 
    {
        this.consumerPhone = consumerPhone;
    }

    public String getConsumerPhone() 
    {
        return consumerPhone;
    }
    public void setmId(String mId) 
    {
        this.mId = mId;
    }

    public String getmId() 
    {
        return mId;
    }
    public void setConsumerQQ(String consumerQQ) 
    {
        this.consumerQQ = consumerQQ;
    }

    public String getConsumerQQ() 
    {
        return consumerQQ;
    }
    public void setConsumerVx(String consumerVx) 
    {
        this.consumerVx = consumerVx;
    }

    public String getConsumerVx() 
    {
        return consumerVx;
    }
    public void setConsumerCard(String consumerCard) 
    {
        this.consumerCard = consumerCard;
    }

    public String getConsumerCard() 
    {
        return consumerCard;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("consumerName", getConsumerName())
            .append("consumerGenerate", getConsumerGenerate())
            .append("consumerPhone", getConsumerPhone())
            .append("mId", getmId())
            .append("consumerQQ", getConsumerQQ())
            .append("consumerVx", getConsumerVx())
            .append("consumerCard", getConsumerCard())
            .append("date", getDate())
            .append("price", getPrice())
            .toString();
    }
}
